package structurebasicdemo;

public class MainDemo {
    public static void main(String[] args) {
        java.util.LinkedList officers = new java.util.LinkedList();
        officers.add("B");
        officers.add("B");
        officers.add("T");
        officers.add("H");
        officers.add("P");
        System.out.println(officers);
        officers.set(2, "M");
        System.out.println(officers);
    }
}
